package net.csdn.business.discuss.api.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName DiscussLikeDTO
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/25 19:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiscussLikeDTO implements Serializable {
    /** 点赞的主体id */
    @NotBlank(message = "targetId不能为空")
    private String targetId;
    /** 点赞的主体类型：1：讨论；2：评论；3:评论回复 */
    @NotNull(message = "targetType不能为空")
    private Integer targetType;
    /** 点赞用户id */
    //@NotBlank(message = "userId不能为空")
    private String userId;
}
